import request from '@/utils/request'

// 查询收文管理列表
export function listOaAddressee(query) {
  return request({
    url: '/addressee/oaAddressee/list',
    method: 'get',
    params: query
  })
}

// 查询收文管理详细
export function getOaAddressee(id) {
  return request({
    url: '/addressee/oaAddressee/' + id,
    method: 'get'
  })
}

// 保存收文管理
export function saveOaAddressee(data) {
  return request({
    url: '/addressee/oaAddressee/save',
    method: 'post',
    data: data
  })
}

// 删除收文管理
export function delOaAddressee(id) {
  return request({
    url: '/addressee/oaAddressee/' + id,
    method: 'delete'
  })
}

// 导出收文管理
export function exportOaAddressee(query) {
  return request({
    url: '/addressee/oaAddressee/export',
    method: 'get',
    params: query
  })
}
